import type { OwnCourse } from "@/models/ownCourse";
import request from "@/utils/request";

// 根据课程状态统计
export async function countByStatus(params?: OwnCourse) {
  return request('/teach-admin/admin/activity/countByStatus', {
    method: 'POST',
    data: params
  });
}
// 根据课程类型统计
export async function countByType(params?: OwnCourse) {
  return request('/teach-admin/admin/activity/countByType', {
    method: 'POST',
    data: params
  });
}
// 列表
export async function activityList(params?: OwnCourse) {
  return request('/teach-admin/admin/activity/list', {
    method: 'POST',
    data: params
  });
}
// 下拉教师列表
export async function teacherOptionList(params?: OwnCourse) {
  return request('/teach-admin/admin/teacher/option/list', {
    method: 'POST',
    data: params
  });
}